package com.db4o.odbgen.plugins.java.maingenerator.typedxmlschema;

import java.util.List;

import com.db4o.odbgen.OdbgenException;

/**
 * 
 * Represents a method within a class.
 * @author liviug
 */
public class TSMethod extends TSMethodDeclaration{
    private StringBuilder _content;

    /**
     * Constructs a method given it's fields.
     * @throws OdbgenException 
     */
    public TSMethod(
            boolean isConstructor,
            List<TSModifier> modifiers,
            DataType type,
            String name,
            List<TSMethodParameter> parameters,
            String content
            ) throws OdbgenException{
        super(isConstructor, modifiers, type, name, parameters);
        this._content = new StringBuilder(content);
    }
    
    
    /**
     * Returns the content of this method.
     * Use this to add content to the methods.
     */
    public StringBuilder getContent(){
        return this._content;
    }
}
